import Vue from 'vue'
import App from './App.vue'
import router from './router'
import '@/plugins/element'
import '@/styles/global.css'
import '@/assets/fonts/iconfont.css'
import TreeTable from 'vue-table-with-tree-grid'
import moment from 'moment'
import VueQuillEditor from 'vue-quill-editor'

// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor /* { default global options } */)

Vue.component('TreeTable', TreeTable)

Vue.config.productionTip = false

Vue.filter('dateFormat', function(val) {
  return moment(val).format('YYYY-MM-DD HH:mm:ss')
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
